package com.lemon.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Warehouse {
    @Schema(title = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(title = "仓库名字")
    private String name;

    @Schema(title = "所在城市ID")
    private Integer cityId;

    @Schema(title = "所在城市名称")
    private String cityName;

    @Schema(title = "所在省份ID")
    private Integer provinceId;

    @Schema(title = "所在省份名字")
    private String provinceName;

    @Schema(title = "详细地址")
    private String address;

    @Schema(title = "经纬度")
    private String location;

    @Schema(title = "负责人名字")
    private String personChargeName;

    @Schema(title = "SaaS标识")
    private String saasId;

    @Schema(title = "负责人ID")
    private Integer personChargeId;

    @Schema(title = "排序")
    private Integer sort;

    @Schema(title = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(title = "创建人账号")
    private String createBy;

    @Schema(title = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(title = "修改人账号")
    private String updateBy;

    @Schema(title = "是否删除")
    private Integer isDel;
}

















